from launch import LaunchDescription
from launch_ros.actions import Node
import os
from ament_index_python.packages import get_package_share_directory


def generate_launch_description():
    params_file = os.path.join(
        get_package_share_directory("senky_laser"), "launch", "laser_front.yaml"
    )
    laser_node = Node(
        package="senky_laser", executable="laser_node", parameters=[params_file], namespace="front", output="screen"
    )
    launch_description = LaunchDescription([laser_node])
    return launch_description
